package com.ll.SchoolSafe.Service;

import com.ll.SchoolSafe.pojo.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "safe-education-service")
public interface SafetyEducationService{
    @PutMapping("/getSafeEducation/addReadNumber/{safetyId}")
    public CommonResult addReadCount(@RequestParam("safetyId") Integer safetyId);

    @GetMapping("/getSafeEducation/getAllSafetyTheme")
    public CommonResult getSafeEducation();

    @GetMapping("/getSafeEducation/getAllSafetyByThemeId/{safetyThemeId}")
    public CommonResult getSafetyTheme(@RequestParam("safetyThemeId") Integer safetyThemeId);

    @GetMapping("/getSafeEducation/getSafetyBySafetyId/{safetyId}")
    public CommonResult getAllSafety( @RequestParam("satisfyId") Integer safetyId);
}
